package com.itic.appbase.framework.type;

public enum ProjectScoreType {
	Use(1,"use"),Consume(2,"consume"),Deduc(3,"deduc");
	private int type;
	private String name;
	ProjectScoreType(int type, String name) {
		this.type = type;
		this.name = name;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static ProjectScoreType getProjeectScoreType(String type) {
		ProjectScoreType projeectScoreType = null;
		switch (type) {
		case "1":
			projeectScoreType = ProjectScoreType.Use;
			break;
		case "2":
			projeectScoreType = ProjectScoreType.Consume;
		case "3":
			projeectScoreType = ProjectScoreType.Deduc;
		default:
			break;
		}
		return projeectScoreType;
	}
	
}
